package com.itheima.test31;

public class JavaTeacher extends staffs {
    public JavaTeacher(String name, boolean gender, int age) {
        super(name, gender, age);
    }

    public JavaTeacher() {
    }

    @Override
    public void work() {
        String s = "";
        if (super.isGender()){
            s = "男";
        }else {
            s = "女";
        }
        System.out.println(super.getName() + "是" + super.getAge() + "岁的" +
                s + "性Java讲师一枚");

    }
}
